<script type="text/javascript">
function CheckAll(form)
  {
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.Name != "chkAll")
       e.checked = form.chkAll.checked;
    }
  }
  function unselectall()
{
    if(document.frmList.chkAll.checked){
	document.frmList.chkAll.checked = document.frmList.chkAll.checked&0;
    } 	
}
</script>
<div class="nav">
<a class="sel" href="{:U('Tuihuan/huan')}">换货列表</a>
</div>
<div class="search">

</div>
<div style="margin-top:20px; font-size:14px; font-weight:bold;" ><a href="{:U('Tuihuan/index')}"  >所有信息</a> &nbsp; <a href="{:U('Tuihuan/index',Array('th_status'=>1))}" <if condition="$th_status eq 1">style="color:#FF0000"</if>  >未审核</a>&nbsp; 
<a href="{:U('Tuihuan/index',Array('th_status'=>2))}" <if condition="$th_status eq 2">style="color:#FF0000"</if>  >已审核</a>&nbsp; <a href="{:U('Tuihuan/index',Array('th_status'=>3))}" <if condition="$th_status eq 3">style="color:#FF0000"</if>  >已寄回</a> &nbsp; <a href="{:U('Tuihuan/index',Array('th_status'=>4))}" <if condition="$th_status eq 4">style="color:#FF0000"</if>  >已回收</a></div>
<div class="list">
 <form name="frmlist" id="frmlist" method="post" action="{:U('Tuihuan/order_service')}">
<table class="table_list">
  <thead><tr>
<td width="30" style="display:none">选中</td>
<td width="100">用户名</td>
    <td width="100">申请时间</td>
    <td width="100">商品名称</td>
	<td width="100">图片</td>
    <td width="80px">单价</td>
	<td width="80px">数量</td>
    <td width="80px">状态</td>
    <td width="120px">操作</td>
  </tr>
  </thead>
  <tbody>
  <foreach name="list" item="list">
    <tr>
<td  style="display:none"><input name='list[]' type='checkbox' onClick="unselectall()" value="{$list.id}"></td>
    <td style="text-align:center;">{$list.uid|get_member_name}</td>
    <td style="text-align:center;">{$list.create_time|stringtime}</td>
    <td style="text-align:center;">{$list['Cart'].product_name}<br />{$list['Cart'].cloud}</td>
	<td style="text-align:center;"><img src="__ROOT__{$list['Cart'].picture}" width="80" /></td>
	<td style="text-align:center;">{$list['Cart'].product_price}</td>
	<td style="text-align:center;">{$list['Cart'].product_num}</td>
    <td >{$list.th_status|get_th_status}</td>
    <td><a class="btn_a" href="{:U('info2',Array('id'=>$list['id']))}">详细</a></td>
  </tr>
  </foreach>
  </tbody>
  <tfoot>
    <tr><td colspan="9"><div class="page">{$page}</div></td></tr>
  </tfoot>
</table>
</form>
</div>
